/**
 * @description 组件样式
 * @author: 陈陈
 * @date: 2025/05/09
 * @phone: 18560000860
 * @email: 18560000860@qq.com
 * @company: 济南晨霜信息技术有限公司 /
 * @business: 承接前后端项目的开发
 */
.pure-badge {
	padding: var(--pure-badge-padding, 6px 16px);
	border-radius: var(--pure-badge-border-radius, var(--pure-radius-round));
	display: inline-flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	border: var(--pure-badge-border-width, 0) var(--pure-badge-border-style, solid)
		var(--pure-badge-border-color, currentColor);
	position: relative;

	&::before {
		content: "";
		position: absolute;
		top: 0;
		bottom: 0;
		left: 0;
		right: 0;
		z-index: 0;
		width: 100%;
		height: 100%;
		background: var(--pure-badge-background, var(--pure-background-light));
		opacity: var(--pure-badge-background-opacity);
		border-radius: inherit;
	}

	&__text {
		position: relative;
		z-index: 1;
	}

	&--dot {
		width: var(--pure-badge-dot-size, 8px);
		height: var(--pure-badge-dot-size, 8px);
		padding: 0;
		border-radius: var(--pure-radius-circle);
	}

	&--theme {
		color: var(--pure-badge-color, var(--pure-text-color-invert));

		&::before {
			background: var(--pure-badge-background, var(--pure-badge-theme));
		}
	}

	&--ghost {
		color: var(--pure-badge-color, var(--pure-badge-theme));
		border-width: var(--pure-badge-border-width, 1px);

		&::before {
			opacity: var(--pure-badge-background-opacity, var(--pure-opacity-ghost));
		}
	}

	&--plain {
		color: var(--pure-badge-color, var(--pure-badge-theme));
		border-width: var(--pure-badge-border-width, 1px);

		&::before {
			opacity: var(--pure-badge-background-opacity, 0);
		}
	}
}
